package com.sjsu.cloudmanager.client.ui.model;

import com.extjs.gxt.ui.client.data.BaseModel;

import java.util.Date;

/**
 * Computing machine bean used by UI layer
 * User: ckempaiah
 * Date: 10/2/11
 * Time: 10:35 PM
 * To change this template use File | Settings | File Templates.
 */
public class ComputingMachineBean extends BaseModel {

    public ComputingMachineBean(Integer machineId, String machineName
            , String machineCloudId, String operatingSystem, String labName, Integer memory){

        setMachineName(machineName);
        setMachineId(machineId);
        setMachineCloudId(machineCloudId);
        setOperatingSystem(operatingSystem);
        setLabName(labName);
        setMemory(memory);

    }

    public ComputingMachineBean(){

    }
    public String getMachineName(){
        return get("machineName");
    }

    public void setMachineName(String machineName){
        set("machineName", machineName);
    }

    public String getOperatingSystem(){
        return get("operatingSystem");
    }

    public void setOperatingSystem(String operatingSystem){
        set("operatingSystem",operatingSystem);
    }

    public Integer getMachineId(){
        return get("machineId");
    }

    public void setMachineId(Integer machineId){
        set("machineId", machineId);
    }

    public String getMachineCloudId(){
        return get("machineCloudId");
    }

        public String getLabName() {
        return get("labName");
    }

    public void setLabName(String labName) {
        set("labName",labName);
    }

    public void setMachineCloudId(String machineCloudId){
        set("machineCloudId", machineCloudId);
    }

    public void setMemory(Integer memory){
        set("memory", memory);
    }

    public Integer getMemory(){
        return get("memory");
    }

    public Integer getLabId(){
        return get("labId");
    }

    public void setLabId(Integer labId){
        set("labId", labId);
    }

    public CloudLabBean getCloudLabBean(){
        return get("cloudLabBean");
    }

    public void setCloudLabBean(CloudLabBean cloudLabBean){
       set("cloudLabBean", cloudLabBean);
    }

    public void setImageId(String imageId){
        set("imageId", imageId);
    }

    public String getImageId(){
        return get("imageId");
    }

    public void setPublicDns(String publicDns){
        set("publicDns", publicDns);
    }

    public String getPublicDns(){
        return get("publicDns");
    }

    public String getStatus(){
        return get("status");
    }
    public String setStatus(String status){
        return set("status", status);
    }

    public Date getLaunchTime(){
        return get("launchTime");
    }

    public void setLaunchTime(Date launchTime){
        set("launchTime", launchTime);
    }
}
